package com.hyb.service;

import com.hyb.Vo.OrderVo;
import com.hyb.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyb.page.PageReq;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  订单Service接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
public interface OrderService extends IService<Order> {
    @Autowired
    void createOrder(List<OrderVo> orderVoList);

    PageReq loadOrders(Integer limit,Integer current,Integer customerId);

    void updateOrder(List<OrderVo> orderVoList);

    Order getOrderByOrderId(Integer orderId);

    void updateOrderState(Order order);

    PageReq loadEndingOrders(Integer limit,Integer current,Integer customerId);

    OrderVo getOrderByOrderIdAndCustomerId(Integer orderId,Integer customerId);
}
